package com.lagou.task10.test;

/**
 * 上网套餐
 */
public class OnlineMeal extends CardMeal{

    private int netFlow;

    public int getNetFlow() {
        return netFlow;
    }

    public void setNetFlow(int netFlow) {
        this.netFlow = netFlow;
    }

    public OnlineMeal(int postage) {
        super(postage);
    }

    public OnlineMeal(int postage, int netFlow) {
        super(postage);
        this.netFlow = netFlow;
    }

    @Override
    public void show() {
        System.out.println("上网流量："+getNetFlow()+"每月资费："+getPostage());
    }
}
